﻿using System;
using System.Collections.Generic;
using System.Text;

using H2.NET.Data.Common;
using H2.NET.Data.Common.Mappings;
using H2.NET.Data.Common.Validates;

namespace H2.NET.Business
{
    [Table]
    [Serializable]
    public partial class t_Sequence : DataObject
    {
        [ID]
        [DID]
        public string ID { get { return _ID; } set { _ID = value; EntityState.FieldChange("ID"); } }
        private string _ID;
        public static FieldInfo id = new FieldInfo("t_Sequence", "ID");

        //前缀
        [Column]
        public string Prefix { get { return _Prefix; } set { _Prefix = value; EntityState.FieldChange("Prefix"); } }
        private string _Prefix;
        public static FieldInfo prefix = new FieldInfo("t_Sequence", "Prefix");

        //日志类别
        [Column]
        public string Postfix { get { return _Postfix; } set { _Postfix = value; EntityState.FieldChange("Postfix"); } }
        private string _Postfix;
        public static FieldInfo postfix = new FieldInfo("t_Sequence", "Postfix");

        //位数
        [Column]
        public int Digits { get { return _Digits; } set { _Digits = value; EntityState.FieldChange("Digits"); } }
        private int _Digits;
        public static FieldInfo digits = new FieldInfo("t_Sequence", "Digits");

        //序列号
        [Column]
        public int No { get { return _No; } set { _No = value; EntityState.FieldChange("No"); } }
        private int _No;
        public static FieldInfo no = new FieldInfo("t_Sequence", "No");

    }
}
